home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / exec_prompt < prev    next >
Encoding:
Text File  |  2001-03-21  |  755 b   |  26 lines

  1. Synopsis:
  2.    on [<modes>]exec_prompt [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever an EXECed process displays a "prompt".
  6.    More precisely, it is triggered when the process returns any line of
  7.    output that is not terminated by a newline.  This is generally the case
  8.    with interactive commands, such as nslookup(1).
  9.  
  10. Parameters:
  11.    $0   process number of name of the EXECed process
  12.    $1   prompt string to look for
  13.  
  14. Examples:
  15.    To hook the prompt when using nslookup interactively:
  16.       on ^exec_prompt "% >" {
  17.          assign foo $0
  18.          input "nslookup> " {
  19.             msg %${foo} $*
  20.          }
  21.       }
  22.  
  23. See Also:
  24.    exec(5); input(5); on(5) exec, exec_errors, exec_exit
  25.  
  26.